// vite.config.js
import { defineConfig } from "file:///Users/zhangjie/Desktop/flink_web_analytics/frontend/node_modules/vite/dist/node/index.js";
import vue from "file:///Users/zhangjie/Desktop/flink_web_analytics/frontend/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import AutoImport from "file:///Users/zhangjie/Desktop/flink_web_analytics/frontend/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///Users/zhangjie/Desktop/flink_web_analytics/frontend/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///Users/zhangjie/Desktop/flink_web_analytics/frontend/node_modules/unplugin-vue-components/dist/resolvers.js";
import { resolve } from "path";
import monacoEditorPlugin from "file:///Users/zhangjie/Desktop/flink_web_analytics/frontend/node_modules/vite-plugin-monaco-editor/dist/index.js";
var __vite_injected_original_dirname = "/Users/zhangjie/Desktop/flink_web_analytics/frontend";
var vite_config_default = defineConfig(({ mode }) => ({
  plugins: [
    vue(),
    AutoImport({
      resolvers: [ElementPlusResolver()]
    }),
    Components({
      resolvers: [ElementPlusResolver()]
    }),
    monacoEditorPlugin.default({
      languageWorkers: ["editorWorkerService", "json"]
    })
  ],
  define: {
    // 生产环境下移除日志调用
    __DEV_LOGS__: mode === "development"
  },
  resolve: {
    alias: {
      "@": resolve(__vite_injected_original_dirname, "src")
    }
  },
  server: {
    port: 5173,
    host: "0.0.0.0",
    proxy: {
      "/api": {
        target: "http://localhost:8096",
        changeOrigin: true
      }
    }
  },
  build: {
    outDir: "dist",
    assetsDir: "assets",
    sourcemap: false,
    rollupOptions: {
      output: {
        manualChunks: {
          vendor: ["vue", "vue-router", "pinia"],
          element: ["element-plus"]
        }
      }
    }
  }
}));
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID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